﻿using System;
using System.Data;

namespace SLIITPro.Data.Entity
{
    public class WishList
    {
        private int _wishId;
        private int _wBusinessId;
        private int _wUserId;

        public int WishId
        { get { return _wishId; } set { _wishId = value; } }
        public int WBusinessId
        { get { return _wBusinessId; } set { _wBusinessId = value; } }
        public int WUserId
        { get { return _wUserId; } set { _wUserId = value; } }

        public WishList(){}

        public WishList(DataRow row)
        {
            if (row["WId"] != DBNull.Value) WishId = int.Parse(row["WId"].ToString());
            if (row["WBId"] != DBNull.Value) WBusinessId = int.Parse(row["WBId"].ToString());
            if (row["WUId"] != DBNull.Value) WUserId = int.Parse(row["WUId"].ToString());

        }
    }
}
